#event 64055 <Child-ID#> <Courtier-ID#> = Child has teenage infatuation wth courtier.
#event 400 gets YOU pregnant; husband is the father
#event 401 gets YOU pregnant; husband is NOT the father
#event 402 gets YOU pregnant; unmarried
#event 403 gets your wife pregnant; regular
#event 404 gets your wife pregnant; YOU ARE NOT the father
#event 24504 gets your wife pregnant; wife gains the stressed trait

namespace = nada

#PRISON RAPE/WHORING												010	########################
character_event = {
	id = nada.011
	desc = nada011desc
	picture = "GFX_evt_into_the_dungeon"
	min_age = 14
	max_age = 45
	prisoner = yes
	
	trigger = {
		is_female = yes
		host = { 
			is_female = no
			age = 14
			NOT = { 
				trait = kind
				trait = just
				trait = incapable
				trait = homosexual
				age = 60
			}
			
		}
	}
			
	option = {
		name = "nada011option1"
		
		host = {
			character_event = {
				id = nada.012
			
			}
		}
	}
	
	mean_time_to_happen = {
		days = 1000 #needs balancing
		modifier = {
			factor = 0.75
			trait = fair
		}
		modifier = {
			factor = 0.75
			trait = bombshell
		}
		modifier = {
			factor = 0.75
			check_variable = { which = breast_size value = 5 }
		}
		modifier = {
			factor = 0.85
			check_variable = { which = breast_size value = 4 }
			NOT = { check_variable = { which = breast_size value = 5 } }
		}
		modifier = {
			factor = 1.5
			age = 30
		}
		modifier = {
			factor = 1.5
			age = 35
		}
		modifier = {
			factor = 1.5
			age = 40
		}
		modifier = {
			factor = 0.9
			NOT = { age = 25 }
		}
		modifier = {
			factor = 0.9
			trait = weak
		}
		modifier = {
			factor = 0.2
			host = {trait = cruel}
		}
		modifier = {
			factor = 0.7
			host = {trait = lustful}
		}
		modifier = {
			factor = 2
			trait = ugly
		}
	}
}

character_event = {
	id = nada.012
	desc = nada012desc
	picture = "GFX_evt_into_the_dungeon"
	is_triggered_only = yes
	
	option = {
		name = "nada012option1"
		piety = -2
		prestige = -5
		ROOT = {
			add_trait = cruel
			hidden_tooltip = {
				character_event = { id = WoL.97 }
			}
		}
		
		hidden_tooltip = {
		FROM = {
			prestige = -10
			character_event = { id = nada.013 }
			}
		}
	}
#	option = { gang? whore for money?
#		name = "nada012option3"
#	}
	
	option = {
		name = "nada012option2"
		piety = 1
		FROM = { character_event = { id = nada.014 } }
	}
}

#OH NO!
character_event = {
	id = nada.013
	desc = nada013desc
	picture = "GFX_evt_into_the_dungeon"
	is_triggered_only = yes
	option = {
		name = "nada013option1"
		add_trait = victim
		random = {
			chance = 20
				add_trait = wounded
		}
		random = {
			chance = 25
				add_trait = depressed
		}
		random = {
			chance = 25
				add_character_modifier = { name = beaten_up duration = 45 }
		}
		random = {
			chance = 25
				add_character_modifier = { name = broken_spirit duration = 300 }
		}
		random = {
			chance = 25
				add_character_modifier = { name = tortured duration = 150 }
		}
		opinion = {
			modifier = opinion_nada_raped who = FROM years = 25
		}
		character_event = { id = WoL.97 }
	}
}

#NOTHING HAPPENED
character_event = {
	id = nada.014
	desc = nada014desc
	picture = "GFX_evt_into_the_dungeon"
	is_triggered_only = yes
	option = {
		name = "nada014option1"
	}
}

# Wrapper for nada.030 from on_adulthood. This is necessary because when
# nada.030 is called directly from on_adulthood the "is_adult = yes" trigger is
# not met as of the Conclave patch
character_event = {
    id = nada.29
    is_triggered_only = yes
    hide_window = yes
    only_women = yes
    
    trigger = {
		NOT = {
			has_character_flag = nada_checked
		}
    }
    
    immediate = {
        character_event = { id = nada.030 days = 1 }
    }
}

#mature - curves show up											030	########################
character_event = {
	id = nada.030
	is_triggered_only = yes
	hide_window = yes
	only_women = yes
	
	trigger = {
	    is_adult = yes
		NOT = {
			has_character_flag = nada_checked
		}
	}
	
	immediate = {
	    if = {
	        limit = { NOT = { has_character_flag = christ_breast_size_set } }
	        character_event = { id = christ.32 }
	    }
		character_event = { id = christ.31 }
		if = {
		    limit = { check_variable = { which = breast_size value = 4 } }
		    random = {
                chance = 25
                add_trait = bombshell
            }
		}
		if = {
			limit = {
				mother = { trait = bombshell }
				check_variable = { which = breast_size value = 5 }
			}
			random = {
				chance = 50
				add_trait = fair
				add_trait = bombshell
			}
		}
		if = {
			limit = {
				NOT = { trait = fair }
				trait = bombshell
				}
			random_list = { # char has to to be attractive (trait fair) to get even more attractive (trait bombshell)
				50 = { remove_trait = bombshell } #either gain attractiveness or lose bombshell
				50 = { add_trait = fair }
			}
		}
		if = {
			limit = {
				OR = {
					AND = {
						lustful_religion = no
						calc_true_if = {
							amount = 2
							trait = fair
							trait = lustful
							trait = bombshell
							check_variable = { which = breast_size value = 5 }
							trait = hedonist
						}
					}
					AND = { # women can be whores most easily when whores are revered
						priestess_whore_religion = yes
						calc_true_if = {
							amount = 1
							trait = fair
							trait = lustful
							trait = bombshell
							check_variable = { which = breast_size value = 5 }
							trait = hedonist
						}
					}
				}
				NOT = { 
					trait = chaste
					trait = celibate
					trait = ugly
					trait = gluttonous
					age = 45
					AND = {
						age = 35
						priestess_whore_religion = no
					}
				}
			}
			set_character_flag = ai_whore #char may become a whore
		}
		if = {
			limit = {
				NOT = { 
					trait = chaste
					trait = celibate
					trait = ugly
					trait = gluttonous
					age = 35
				}
			}
			random = {
				chance = 15
				set_character_flag = ai_whore
			}
		}
		clr_character_flag = christ_teen_curves
		set_character_flag = nada_checked
		
		# If a woman in a non-lustful religion becomes a whore, her relgion's
		# lust will increase.
		if = {
		    limit = {
                has_character_flag = ai_whore
		    }
		    character_event = { id = christ.15 }
		}
	}
}

# Kidnapping -> Success!, victim gets event							040	########################
character_event = { 
	id = nada.040
	desc = nada040desc
	picture = "GFX_evt_into_the_dungeon"
	is_triggered_only = yes
	option = {
		name = nada040option1
		FROM = { FROM = { reverse_imprison = ROOT } } # ISNT IT LOL?
	}
}
# Kidnapping -> Success FROM event
character_event = { 
	id = nada.041
	desc = nada041desc
	picture = "GFX_evt_into_the_dungeon"
	is_triggered_only = yes
	option = {
		name = nada041option1
	}
}

# Kidnapping -> Failed!, victim gets event
character_event = { 
	id = nada.043
	desc = nada043desc
	is_triggered_only = yes
	option = {
		name = nada043option1
	}
}
# Kidnapping -> Failed FROM event
character_event = { 
	id = nada.042
	desc = nada042desc
	is_triggered_only = yes
	option = {
		name = nadaoptionok
	}
}

# work as whore	in brothel											050	########################
# do 1 char
character_event = {
	id = nada.050
	desc = nada050desc
	picture = GFX_event_seduction_01
	is_triggered_only = yes
	immediate = {
		hidden_tooltip = {
			if = {
				limit = { trait = weak }
				random = {
					chance = 1
					add_trait = ill
				}
			}
		}
		random_playable_ruler = {
			random_courtier = {
			    limit = {
                    is_female = no
                    is_adult = yes
                    ai = yes
                    NOT = {
                        spouse = { character = ROOT }
                        is_lover = ROOT
                        trait = chaste
                        trait = incapable
                    }
				}
				set_character_flag = whore_target
			}
		}
	}
	option = { # inside!
		name = nada050option1
		random_playable_ruler = {
			random_courtier = {
			    limit = {
                    has_character_flag = whore_target
				}
				hidden_tooltip = {
					clr_character_flag = whore_target
					character_event = { id = WoL.97 }
				}
			}
		}
		# why the fuck is it not possible to just wealth = wealth_temp. seriously.		
		if = {
			limit = { check_variable = { which = wealth_temp value = 15 } }
			wealth = 8
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 13 } }
			wealth = 7
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 11 } }
			wealth = 6
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 9 } }
			wealth = 5
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 7 } }
			wealth = 4
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 5 } }
			wealth = 3
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 3 } }
			wealth = 2
		}
	}
	option = { # outside!
		name = nada050option2
		random_playable_ruler = {
			random_courtier = {
			    limit = {
                    has_character_flag = whore_target
				}
				hidden_tooltip = {
					clr_character_flag = whore_target
					random = {
						chance = 25
						ROOT = { character_event = { id = nada.051 }}
						character_event = { id = WoL.97 }
					}
				}
			}
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 15 } }
			wealth = 7
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 13 } }
			wealth = 6
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 11 } }
			wealth = 5
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 9 } }
			wealth = 4
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 7 } }
			wealth = 3
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 5 } }
			wealth = 2
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 3 } }
			wealth = 1
		}
	}
}

# did it inside anyway
character_event = {
	id = nada.051
	desc = nada051desc
	is_triggered_only = yes
	option = {
		name = nadaoptionok
	}
}

# clear whore flag, may work again
character_event = {
	id = nada.052
	is_triggered_only = yes
	hide_window = yes
	immediate = {
	clr_character_flag = nada_whored
	}
}

# something new
character_event = {
	id = nada.053
	desc = nada053desc
	picture = GFX_event_woman_11
	is_triggered_only = yes
	option = { #bang
		name = nada053optiono1
		ai_chance = {
			factor = 85
		}
		wealth = -5
		event_target:nada_whore = {
			wealth = 5
			character_event = { id = WoL.98 }
		}
	}
	option = { #fj
		name = nada053optiono2
		ai_chance = {
			factor = 5
		}
		wealth = -2
		event_target:nada_whore = {
			wealth = 2
		}
	}
	option = { #hj
		name = nada053optiono3
		ai_chance = {
			factor = 5
		}
		wealth = -1
		event_target:nada_whore = {
			wealth = 1
		}
	}
	option = { #cancel
		name = nada020option0
		ai_chance = {
			factor = 5
		}
	}
}

# brothel gangbang 								060	########################
character_event = {
	id = nada.060
	desc = nada060desc
	picture = GFX_event_seduction_15
	is_triggered_only = yes
	option = {
		name = nada060option1
		hidden_tooltip = { random_playable_ruler = {
			    limit = {
                    is_female = no
                    is_adult = yes
                    ai = yes
                    NOT = {
                        trait = chaste
                        trait = celibate
                        trait = incapable
                        spouse = { character = ROOT }
                        is_lover = ROOT
                    }
				}
				character_event = { id = WoL.97 }
		}
		random_playable_ruler = {
			    limit = {
                    is_female = no
                    is_adult = yes
                    ai = yes
                    NOT = {
                        trait = chaste
                        trait = celibate
                        trait = incapable
                        spouse = { character = ROOT }
                        is_lover = ROOT
                    }
				}
				character_event = { id = WoL.97 }
		}
		random_playable_ruler = {
			    limit = {
                    is_female = no
                    is_adult = yes
                    ai = yes
                    NOT = {
                        trait = chaste
                        trait = celibate
                        trait = incapable
                        spouse = { character = ROOT }
                        is_lover = ROOT
                    }
				}
				character_event = { id = WoL.97 }
		}
		random_playable_ruler = {
			    limit = {
                    is_female = no
                    is_adult = yes
                    ai = yes
                    NOT = {
                        trait = chaste
                        trait = celibate
                        trait = incapable
                        spouse = { character = ROOT }
                        is_lover = ROOT
                    }
				}
				character_event = { id = WoL.97 }
		}
		random_playable_ruler = {
			    limit = {
                    is_female = no
                    is_adult = yes
                    ai = yes
                    NOT = {
                        trait = chaste
                        trait = celibate
                        trait = incapable
                        spouse = { character = ROOT }
                        is_lover = ROOT
                    }
				}
				character_event = { id = WoL.97 }
		}
		random_playable_ruler = {
			    limit = {
                    is_female = no
                    is_adult = yes
                    ai = yes
                    NOT = {
                        trait = chaste
                        trait = celibate
                        trait = incapable
                        spouse = { character = ROOT }
                        is_lover = ROOT
                    }
				}
				character_event = { id = WoL.97 }
		}
		random_playable_ruler = {
			    limit = {
                    is_female = no
                    is_adult = yes
                    ai = yes
                    NOT = {
                        trait = chaste
                        trait = celibate
                        trait = incapable
                        spouse = { character = ROOT }
                        is_lover = ROOT
                    }
				}
				character_event = { id = WoL.97 }
		} } 
		hidden_tooltip = {
			add_trait = gangbang_fanatic
			if = {
				limit = { trait = weak }
				random = {
					chance = 3
					add_trait = ill
				}
			}
			if = {
				limit = { is_married = yes }
				add_character_modifier = { name = adulteress duration = -1 }
			}
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 15 } }
			wealth = 25
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 13 } }
			wealth = 22
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 11 } }
			wealth = 19
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 9 } }
			wealth = 16
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 7 } }
			wealth = 13
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 5 } }
			wealth = 10
			break = yes
		}
		if = {
			limit = { check_variable = { which = wealth_temp value = 3 } }
			wealth = 7
		}
	}
}

# visit workshop 								070	########################
character_event = {
	id = nada.070
	desc = nada070desc
	picture = GFX_event_nada6
	is_triggered_only = yes
	option = { #buy dress
		name = nada070option1
		trigger = { 
			is_female = yes 
		}
		wealth = -25
		character_event = { id = nada.071 }
	}
	option = { #buy stockings
		name = nada070option2
		trigger = { 
			is_female = yes 
		}
		wealth = -5
		character_event = { id = nada.072 }
	}
	option = { #buy armor
		name = nada070option3
		wealth = -50
		character_event = { id = nada.073 }
	}
	option = {
		name = nada020option0 #cancel
	}
}

# buy dress
character_event = {
	id = nada.071
	desc = nada071desc
	picture = GFX_event_nada5
	is_triggered_only = yes
	option = {
		name = nadaoptionok
		add_artifact = dress
		hidden_tooltip = {
		    character_event = { id = nada.171 days = 365 }
		}
	}
}

# buy stockings
character_event = {
	id = nada.072
	desc = nada072desc
	picture = GFX_event_nada2
	is_triggered_only = yes
	option = {
		name = nadaoptionok
		add_artifact = stockings
		hidden_tooltip = {
		    character_event = { id = nada.172 days = 180 }
		}
	}
}

# buy armor
character_event = {
	id = nada.073
	desc = nada073desc
	picture = GFX_event_nada4
	is_triggered_only = yes
	option = {
		name = nadaoptionok
		add_artifact = nada_armor
	}
}

# Clothing artifact cleanup, triggered by on_artifact_inheritance
character_event = {
    id = nada.100
    is_triggered_only = yes
    hide_window = yes
	immediate = {
		if = {
			limit = { has_artifact = nada_armor }
			destroy_artifact = nada_armor
		}
		if = {
			limit = { has_artifact = dress }
			destroy_artifact = dress
		}
		if = {
			limit = { has_artifact = stockings }
			destroy_artifact = stockings
		}
	}
}

# remove dress
character_event = {
    id = nada.171
    desc = nada.171.desc
	picture = GFX_event_nada5
    is_triggered_only = yes
    option = {
		name = nadaoptionok
		if = {
			limit = { has_artifact = dress }
			destroy_artifact = dress
		}
    }
}

# remove stockings
character_event = {
    id = nada.172
    desc = nada.172.desc
	picture = GFX_event_nada2
    is_triggered_only = yes
    option = {
		name = nadaoptionok
		if = {
			limit = { has_artifact = stockings }
			destroy_artifact = stockings
		}
    }
}
